<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->
<%

If Request.Form <> "" Then
TrainId =Trim(Request.Form("TrainId"))
TrainBeginDate =Trim(Request.Form("TrainBeginDate"))
TrainEndDate =Trim(Request.Form("TrainEndDate"))
TrainAgencies =Trim(Request.Form("TrainAgencies"))
TrainAddr =Trim(Request.Form("TrainAddr"))
TrainCourses =Trim(Request.Form("TrainCourses"))
TrainCertificates =Trim(Request.Form("TrainCertificates"))
TrainNote =Trim(Request.Form("TrainNote"))
Conn.Execute("update TrainTbl set TrainBeginDate = '"& TrainBeginDate &"' , TrainEndDate = '"& TrainEndDate &"' , TrainAgencies = '"& TrainAgencies &"' , TrainAddr = '"& TrainAddr &"' , TrainCourses ='"& TrainCourses &"' , TrainCertificates = '"& TrainCertificates &"' , TrainNote = '"& TrainNote &"' where TrainId = "& TrainId &" and PerId = "& session("AnyPIM_userID"))
End If

TrainId =int(Request("TrainId"))
Rs.Open "select * from TrainTbl where TrainId = "& TrainId &" and PerId = "& session("AnyPIM_userID"),Conn,1,1
If Rs.Eof Then
TrainBeginDate = ""
TrainEndDate = ""
TrainAgencies = ""
TrainAddr = ""
TrainCourses = ""
TrainCertificates = ""
TrainNote = ""
Else
TrainBeginDate = Rs("TrainBeginDate")
TrainEndDate = Rs("TrainEndDate")
TrainAgencies = Rs("TrainAgencies")
TrainAddr = Rs("TrainAddr")
TrainCourses = Rs("TrainCourses")
TrainCertificates = Rs("TrainCertificates")
TrainNote = Rs("TrainNote")
End If
Rs.Close
%>
<script language="javascript">
function CheckForm()
{
if(!checkLength("TrainBeginDate" , "开始时间" , 1 , 20))
return false;
if(!checkLength("TrainEndDate" , "结束时间" , 0 , 20))
return false;
if(!checkLength("TrainAgencies" , "培训机构" , 1 , 100))
return false;
if(!checkLength("TrainAddr" , "培训地点" , 0 , 100))
return false;
if(!checkLength("TrainCourses" , "培训课程" , 1 , 100))
return false;
if(!checkLength("TrainCertificates" , "获得证书" , 0 , 100))
return false;
if(!checkLength("TrainNote" , "详细描述" , 0 , 500))
return false;
return true;
}
</script>
<TABLE CELLSPACING='3' CELLPADDING='0' BORDER='0' ID='TableMain' align='center' style="BORDER-bottom: #009966 0px solid;">
<tr>
<td>
<a href="Train_Add.asp"><img src="img/some_Add.png" border="0" alt=""><strong>【添加培训】</strong></a>
</td>
</tr>
</table>
<!--  -->
<table ID='TableMain' align='center' cellpadding="" cellspacing="1" border="0">
<form id="PerForm" name="PerForm" method="post" action="Train_Edit.asp" onsubmit="return CheckForm();">
<tr bgcolor="#f6f6f6">
<td width="13%"  bgcolor='#ddeeff'><font color="#FF0000">*</font>时间：
<input name="TrainId" type="hidden" id="TrainId" value="<%=TrainId%>" /></td>
<td width="87%">从
<input name="TrainBeginDate" type="text" class="Wdate" onClick="WdatePicker()" value="<%=TrainBeginDate%>" size="16" />
到
<input name="TrainEndDate" type="text" class="Wdate" onClick="WdatePicker()" value="<%=TrainEndDate%>" size="16" />
(不填表示至今)</td>
</tr>
<tr>
<td  bgcolor='#ddeeff'><font color="#FF0000">*</font>培训机构：</td>
<td><input name="TrainAgencies" type="text" id="TrainAgencies" value="<%=TrainAgencies%>" size="50" /></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>培训地点：</td>
<td><input name="TrainAddr" type="text" id="TrainAddr" value="<%=TrainAddr%>" size="50" /></td>
</tr>
<tr>
<td bgcolor='#ddeeff'><font color="#FF0000">*</font>培训课程：</td>
<td><input name="TrainCourses" type="text" id="TrainCourses" value="<%=TrainCourses%>" size="50" /></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>获得证书：</td>
<td><input name="TrainCertificates" type="text" id="TrainCertificates" value="<%=TrainCertificates%>" size="50" /></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>详细描述：</td>
<td><textarea name="TrainNote" cols="50" rows="10" style="display:none"><%=TrainNote%></TEXTAREA>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=TrainNote&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="350"></IFRAME></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>&nbsp;</td>
<td><input type="submit" name="Submit" value=" 修  改 " />
&nbsp;
<input type="reset" name="Submit" value=" 重  置 " />
</td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>


<!-- #include file="Foot.asp" -->
